package com.itdct.mto.core.bo;

import java.util.ArrayList;

import lombok.Data;

/**
 * @author Zhouwx
 * @date 2025/7/1 15:40:41
 * @version 1.0
 * @description
 */
@Data
public class TableBo {
    private String tableName;
    private String tableComment;
    private ArrayList<ColumnBo> columnList = new ArrayList<>();
    private ArrayList<IndexBo> indexList = new ArrayList<>();
    private ArrayList<PartitionBo> partitionList = new ArrayList<>();

    /**
     * 该表自身的MySQL版本的ddl
     */
    private String tableDdl;

    /**
     * 是否为分区表
     */
    private boolean partitionTable;

    /**
     * 表的partitionBy语句
     */
    private String partitionBy;

    /**
     * 表解析ddl是否成功
     */
    private boolean analyseSuccess;

    /**
     * 该表是否转换成功
     */
    private boolean convertSuccess;

    /**
     * 该表数据是否迁移成功
     */
    private boolean transferSuccess;

    /**
     * 报错信息
     */
    private Exception exception;

    /**
     * 数据总量
     */
    private long totalCount;

    /**
     * 数据传输开始时间
     */
    private long transferStartTime;

    /**
     * 数据传输结束时间
     */
    private long transferEndTime;

}
